package com.shanzmoo.db.store.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.shanzmoo.db.store.entity.StoreStockAllotBillDetailEntity;
import com.shanzmoo.db.store.entity.vo.StoreStockAllotBillDetailVO;
import com.shanzmoo.db.store.entity.query.StoreStockAllotBillDetailQuery;
import com.shanzmoo.db.store.mapper.StoreStockAllotBillDetailMapper;
import com.shanzmoo.db.store.service.IStoreStockAllotBillDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shanzmoo.db.sys.entity.vo.MenuTreeVo;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

/**
 * 仓库调拨单明细 服务实现类
 *
 * @author Gzhao 2021-03-11
 */
@Service
public class StoreStockAllotBillDetailServiceImpl extends ServiceImpl<StoreStockAllotBillDetailMapper, StoreStockAllotBillDetailEntity>
        implements IStoreStockAllotBillDetailService {

    @Override
    public List<StoreStockAllotBillDetailVO> queryPageList(StoreStockAllotBillDetailQuery query) {
        return baseMapper.queryPageList(query);
    }

    @Override
    public List<StoreStockAllotBillDetailVO> getListByBillId(Integer id) {
        List<StoreStockAllotBillDetailVO> rsList = baseMapper.getListByBillId(id);
        return rsList;
    }

    @Override
    public List<StoreStockAllotBillDetailVO> queryListByIds(List<Integer> billIds) {
        return baseMapper.queryListByIds(billIds);
    }
}
